import http from "@/api";

// 保存
export const hdSave = (params: any) => {
  return http.post(`/hd/save`, params);
};

// 禁用
export const hdDisable = (params: any) => {
  return http.post(`/hd/disable/${params.id}`, params);
};

// 分页查询
export const hdPage = (params: any) => {
  return http.post(`/hd/page`, params);
};

// 得到单号下的所有条码信息
export const codeFindByCar = (params: any) => {
  return http.get(`/code/findByCar`, params);
};

// 得到日期下所有单号
export const codeCarCodeByDate = (params: any) => {
  return http.get(`/code/carCodeByDate/${params}`);
};

// 得到日期单下所有货代号
export const codeHdCodeByDate = (params: any) => {
  return http.get(`/code/hdCodeByDate`, params);
};

// 删除条码信息
export const codeRemove = (params: any) => {
  return http.post(`/code/remove`, params);
};

// 保存
export const codeSaveLogs = (params: any) => {
  return http.post(`/code/saveLogs`, params);
};
